///
/// Common header for the cppvi project
///

#ifndef COMMON_H
#define COMMON_H
#include <iostream>
#include <fstream>

#ifdef __cplusplus
extern "C"
{
#endif

#include <stdlib.h>
#include <unistd.h>
	
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
	
#include <pthread.h>
#include <curses.h>
	
#ifdef __cplusplus
}
#endif

using std::ifstream;
using std::ofstream;

using std::cout;
using std::cin;
using std::endl;

typedef chtype msg_t;

const chtype keytab		= 9;
const chtype keyesc		= 27;
const chtype keydelete 	= 330;
const chtype keyhome	= 262;
const chtype keyend		= 360;
const chtype keypgup	= 339;
const chtype keydn		= 338;
const chtype keycolon 	= ':';
const chtype keyi		= 'i';
const chtype keyd		= 'd';

const chtype keyx		= 'x';
const chtype keyc		= 'c';
const chtype keyv		= 'v';

const chtype keyk		= 'k';
const chtype keyl		= 'l';

const chtype keyenter	= '\n';

const int controllernum = 3;

const int commandMode	= 0;
const int insertMode	= 1;
const int lineMode		= 2;

const char versionString[] = "v0.1 build 68";
#endif//COMMON_H
